<style>
    /* confirm */
    .confirm_tip .confirm_mask{
        width:100vw;
        height:100vh;
        position: fixed;
        top: 0;
        z-index: 9;
        background: #000;
        opacity: 0.2;
    }
    .confirm_tip .confirm_content {
        width: 80vw;
        height: 35vw;
        background: #FDED11;
        position: fixed;
        z-index: 10;
        top: 35vh;
        left: 10vw;
        border-radius: 10px;
    }
    .confirm_tip .confirm_content .tips{
        color: #707070;
        padding: 6vw 8vw;
        line-height: 6vw;
        font-size: 3.8vw;
    }
    .confirm_tip .confirm_content .cancel{
        width: 15vw;
        float: left;
        text-align: center;
        margin-right: 10vw;
    }
    .confirm_tip .confirm_content .ok{
        float: left;
        width: 15vw;
        margin-top: -2vw;
        text-align: center;
    }
</style>
<div class="footerNav">
    <a href="{{urlfor "controllers.SchoolController.Index"}}">
        <div class="navItem">
            <img src="/static/front/img/icon1.png" alt="" class="nav_study">
            <p>{{if eq .curUrl "SchoolController/Index"}}学校{{end}}</p>
        </div>
    </a>
    {{if gt .orderCount 0}}
        <a href="javascript:void(0);" onclick="showTips()">
            <div class="navItem">
                <img src="/static/front/img/icon2.png" alt="" class="nav_check">
                <p>{{if eq .curUrl "IndexController/Index" "SchoolController/Excellent" "SchoolController/Assist" "PushTimeController/Index"}}勾选{{end}}</p>
            </div>
        </a>
    {{else}}
        <a href="{{urlfor "controllers.IndexController.Index"}}">
            <div class="navItem">
                <img src="/static/front/img/icon2.png" alt="" class="nav_check">
                <p>{{if eq .curUrl "IndexController/Index" "SchoolController/Excellent" "SchoolController/Assist" "PushTimeController/Index"}}勾选{{end}}</p>
            </div>
        </a>
    {{end}}
    <a href="{{urlfor "controllers.OrderSchoolController.PublicSpace"}}">
        <div class="navItem">
            <img src="/static/front/img/icon3.png" alt="" class="nav_space">
            <p>{{if eq .curUrl "OrderSchoolController/PublicSpace"}}校园空间{{end}}</p>
        </div>
    </a>
</div>
<div class="setUser">
    <a href="{{urlfor "controllers.UserController.Index"}}"><img src="/static/front/img/setUser.png" alt=""></a>
</div>

<div class="confirm_tip" style="display: none;">
    <div class="confirm_mask"></div>
    <div class="confirm_content">

    </div>
</div>

<script>

    var tips = "{{.siteConfig.SelectedTips}}";

    $('.confirm_tip').on('click', '.cancel', function () {
        $('.confirm_tip').hide();
    });

    $('.confirm_tip').on('click', '.againSelect', function () {
        $('.confirm_tip').hide();
    });

    $('.confirm_tip').on('click', '.ok', function () {
        $('#next-form').submit();
    });

    function showTips() {
        var html = `
            <p class="tips">${tips}</p>
            <div class="btn" style="width: 15vw;margin: 0 auto;">
                <div class="againSelect">
                    <img src="/static/front/img/ok.png" style="width: 7vw;">
                </div>
            `;
        $('.confirm_content').html(html);
        $('.confirm_tip').show();
    }

</script>